package com.grass.cropTradingCenter.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName mini_shop_user
 */
@TableName(value ="mini_shop_user")
@Data
public class MiniShopUser implements Serializable {
    /**
     * 
     */
    @TableId(value = "shop_user_id", type = IdType.AUTO)
    private Integer shopUserId;

    /**
     * 店家的普通账号id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 店家手机号
     */
    @TableField(value = "shop_user_phone")
    private String shopUserPhone;

    private String shopUserEmail;


    private Integer isAuth;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    private String shopUserPassword;

    private String shopUserNickname;

    private String shopUserAvatar;
    /**
     * 拥有店铺
     */
    @TableField(value = "shop_num")
    private Integer shopNum;

    @TableField(exist = false)
    private MiniShop miniShop;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}